package com.gym.tygglxt.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class EquipmentRent implements Serializable {
    private Integer rentid;

    private String userid;

    private Integer equid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date rentstartdate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date rentenddate;

    private Integer rentstatus;

    private static final long serialVersionUID = 1L;

    public Integer getRentid() {
        return rentid;
    }

    public void setRentid(Integer rentid) {
        this.rentid = rentid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Integer getEquid() {
        return equid;
    }

    public void setEquid(Integer equid) {
        this.equid = equid;
    }

    public Date getRentstartdate() {
        return rentstartdate;
    }

    public void setRentstartdate(Date rentstartdate) {
        this.rentstartdate = rentstartdate;
    }

    public Date getRentenddate() {
        return rentenddate;
    }

    public void setRentenddate(Date rentenddate) {
        this.rentenddate = rentenddate;
    }

    public Integer getRentstatus() {
        return rentstatus;
    }

    public void setRentstatus(Integer rentstatus) {
        this.rentstatus = rentstatus;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rentid=").append(rentid);
        sb.append(", userid=").append(userid);
        sb.append(", equid=").append(equid);
        sb.append(", rentstartdate=").append(rentstartdate);
        sb.append(", rentenddate=").append(rentenddate);
        sb.append(", rentstatus=").append(rentstatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}